package org.edu.modules.oa.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.edu.modules.oa.entity.VeOaLaneMailEntity;
import org.edu.modules.oa.mapper.IVeOaLaneMailMapper;
import org.edu.modules.oa.service.IVeOaLaneMailService;
import org.edu.modules.oa.vo.VeOaMailExportVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * 2021/5/11
 *
 * @author hwj
 */
@Service
public class VeOaLaneMailServiceImpl extends ServiceImpl<IVeOaLaneMailMapper,VeOaLaneMailEntity> implements IVeOaLaneMailService {

   @Resource
   private IVeOaLaneMailMapper veOaLaneMailMapper;

    @Override
    public int sendMail(VeOaLaneMailEntity mailEntity) {
        return veOaLaneMailMapper.insert(mailEntity);
    }

    @Override
    public List<VeOaMailExportVo> selectAllByIsDeletedAndToUserAndEmailState(VeOaLaneMailEntity veOaLaneMailEntity) {
        return veOaLaneMailMapper.selectAllByIsDeletedAndToUserAndEmailState(veOaLaneMailEntity);
    }
}
